package com.ruoyi.scheme.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EcologicalRepairSchemeDTO {

    // 方案ID
    @NotNull(message = "方案ID不能为空", groups = {ValidationGroups.Update.class})
    private Long schemeId;

    // 斑块ID
    @NotNull(message = "斑块ID不能为空", groups = {ValidationGroups.Create.class, ValidationGroups.Update.class})
    private Integer patchId;

    // json格式修复方案内容
    @NotNull(message = "生态修复方案内容不能为空", groups = {ValidationGroups.Create.class, ValidationGroups.Update.class})
    private Map<String, Object> repairScheme;
}